
public class MySyntaxAnalyzer implements SyntaxAnalyzer {

        private MyLexicalAnalyzer lexer;
        
        public void document() throws CompilerException {
                
                if (Compiler.token.equalsIgnoreCase("#Start Document")){
                        String message = "A #Start Document annotation was expected when a " +
                                        Compiler.token + "was found!";
                        throw new CompilerException(message);
                }
                
                lexer.getNextToken();
                
                body();
                
                if (Compiler.token.equalsIgnoreCase("#Start Document")){
                        String message = "A #Start Document annotation was expected when a " +
                                        Compiler.token + "was found!";
                        throw new CompilerException(message);
                }
        }

        
        public void body() throws CompilerException {
                // TODO Auto-generated method stub

        }
        
        public void head() throws CompilerException {
                // TODO Auto-generated method stub

        }

        public void title() throws CompilerException {
                // TODO Auto-generated method stub

        }

        public void paragraph() throws CompilerException {
                // TODO Auto-generated method stub

        }

        public void bold() throws CompilerException {
                // TODO Auto-generated method stub

        }

        public void italics() throws CompilerException {
                // TODO Auto-generated method stub

        }
        
        public void list() throws CompilerException {
                // TODO Auto-generated method stub

        }

        public void item() throws CompilerException {
                // TODO Auto-generated method stub

        }

        public void audio() throws CompilerException {
                // TODO Auto-generated method stub

        }

        public void video() throws CompilerException {
                // TODO Auto-generated method stub

        }

        public void define() throws CompilerException {
                // TODO Auto-generated method stub

        }

        public void use() throws CompilerException {
                // TODO Auto-generated method stub

        }

}
